﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp7
{
    class ShopNpc:NPC
    {
        private string shopinfo;
        public string Shopinfo
        {
            get { return shopinfo; }
            set { shopinfo = value; }
        }
        public ShopNpc(string name, npcType type, string shopinfo) : base(name, type)
        {
            this.Shopinfo = shopinfo;
        }
        public override void Speak()
        {
            Console.WriteLine("我是{0}，{1}:{2}", this.Name, this.Type, this.shopinfo);
        }
    }
}
